package com.situ.gym.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.situ.gym.pojo.Course;
import com.situ.gym.pojo.query.CoachCourseQuery;
import com.situ.gym.pojo.vo.CoachCourseVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 教练课程管理Mapper接口
 *
 * @author ${author}
 * @since 2025-01-27
 */
@Mapper
public interface CoachCourseMapper extends BaseMapper<Course> {
    
    /**
     * 分页查询教练课程列表
     * @param page 分页对象
     * @param coachCourseQuery 查询条件
     * @return 分页课程列表
     */
    IPage<CoachCourseVO> list(IPage<CoachCourseVO> page, @Param("query") CoachCourseQuery coachCourseQuery);
    
    /**
     * 批量删除课程
     * @param ids 课程ID数组
     */
    void deleteAll(@Param("ids") Long[] ids);
}
